﻿using System;
using System.Windows.Forms;
using MovieBrowser.Util;

namespace MovieBrowser
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                var args = Environment.GetCommandLineArgs();
                var controller = new SingleInstanceController();
                controller.Run(args);
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message + "\n" + exp.InnerException + "\n" + exp.StackTrace);
            }
        }
    }
}
